x86/NUMA: cleanup
authorJan Beulich <jbeulich@suse.com>
Thu, 11 Aug 2016 11:36:42 +0000 (13:36 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 11 Aug 2016 11:36:42 +0000 (13:36 +0200)
commit2c43ac6e9308768bcfb1568895738f6cd49582bf
tree45e5d5e89b362722c085b391601a24ce3108b3e1
parentd0d6597d3d682f324b6a79e3278e6f5bb6bad153
x86/NUMA: cleanup

- drop the only left CONFIG_NUMA conditional (this is always true)
- drop struct node_data's node_id field (being always equal to the
  node_data[] array index used)
- don't open code node_{start,end}_pfn() nor node_spanned_pages()
  except when used as lvalues (those could be converted too, but this
  seems a little awkward)
- no longer open code pfn_to_paddr() in an expression being modified
  anyway
- make dump less verbose by logging actual vs intended node IDs only
  when they don't match

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/numa.c
xen/arch/x86/x86_64/mm.c
xen/include/asm-x86/numa.h